package com.graduation.vaccine.vo;

import com.graduation.vaccine.validator.IsMobile;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author:CaiShuangLian
 * @FileName:
 * @Date:Created in  2022/4/24 23:25
 * @Version:
 * @Description:TODO
 */
@Data
public class RegisterUserVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull
    private String ticket;

    /**
     * 用户登陆手机号，唯一标识用户
     */
    @NotNull
    @IsMobile
    private Long phone;

    /**
     * 用户名
     */
    private String name;

    /**
     * 用户邮箱
     */
    private String email;

    /**
     * 用户性别(1表示女，0表示男)
     */
    private Boolean sex;

    /**
     * 用户地址
     */
    private String address;

    /**
     * 用户密码
     */
    @NotNull
    @Length(min = 6,max = 20)
    private String password;

    /**
     * 头像
     */
    private String head;

    /**
     * 获取权限
     */
    @NotNull
    private String action;

    private String companyName;

}
